//
//  IFMoviePlayerController.h
//  IfengNews
//
//  Created by 刘潋 on 14-10-24.
//
//

#import <MediaPlayer/MediaPlayer.h>

typedef enum {
    IFVideo_Type_Document = 0,  //文章页
    IFVideo_Type_Live,          //直播页
    IFVideo_Type_Demand,        //点播页
    IFVideo_Type_LiveRoom,      //直播室
    IFVideo_Type_SportTopicBig  //体育直播
}IFVideo_Type;

@protocol IFMoviePlayerControllerDelegate <NSObject>

@optional
- (void)IFMoviePlaying;
- (void)IFMovieFishedWithType:(IFVideo_Type)type;

@end

@interface IFMoviePlayerController : MPMoviePlayerController

@property (nonatomic, assign) IFVideo_Type videoType;
@property (nonatomic, weak) id<IFMoviePlayerControllerDelegate> delegate;
@property (nonatomic, unsafe_unretained) CGFloat playingtime;

- (id)initWithContentURL:(NSURL *)url WithType:(IFVideo_Type)type;

@end


